package com.ssmbook2020.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ssmbook2020.bean.BookBean;
import com.ssmbook2020.dao.BookDAO;

@Service("bookService")
public class BookServiceImpl implements BookService {

	@Autowired
	private BookDAO bookdao=null;
	
	
	public void setBookdao(BookDAO bookdao) {
		this.bookdao = bookdao;
	}

	@Override
	public List<BookBean> getAllBook() {
		return bookdao.getAllBooks();
	}

	@Override
	public int getGoodsCount() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public BookBean getBookById(String bookId) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int addBook(BookBean bookBean) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int updateBook(BookBean bookBean, String bookId) {
		// TODO Auto-generated method stub
		return 0;
	}

}
